package com.board.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 膳食系统-订单详情表
 * </p>
 *
 * @author 小叶
 * @since 2024年04月04日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_detail")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;

    /**
     * 订单编号
     */
    @TableField("order_num")
    private String orderNum;

    /**
     * 食堂名字
     */
    @TableField("canteen_name")
    private String canteenName;

    /**
     * 菜品名字
     */
    @TableField("food_name")
    private String foodName;

    /**
     * 菜品单价
     */
    @TableField("food_price")
    private BigDecimal foodPrice;

    /**
     * 菜品数量
     */
    @TableField("food_num")
    private Integer foodNum;

    /**
     * 商家名字
     */
    @TableField("store_name")
    private String storeName;

    /**
     * 商家id
     */
    @TableField("store_id")
    private Integer storeId;

    /**
     * 订单类型 0堂食 1外送
     */
    @TableField("order_type")
    private Integer orderType;

    /**
     * 餐厅id
     */
    @TableField("canteen_id")
    private Integer canteenId;

    /**
     * 菜品id
     */
    @TableField("food_id")
    private Integer foodId;


}
